#
# Sub module Makefile
# from Makefile template for multi-directory
#

include $(SRCTREE)/config.mk

# here you can set your own flags
CFLAGS += -I$(ROOTDIR)/$(LINUXDIR)/drivers/net/wireless/rt2860v2/include

# static library name
LIB = $(obj)libmtk7620.a

# source file(s), including c file(s) cpp file(s)
# you can also use $(wildcard *.c), etc.
SRC_C   := \
	mtk7620.c \
	mtk7620_if.c \
	mtk7620_ifopt.c \
	mtk7620_dev.c \
	mtk7620_misc.c \
	mtk_gpio.c

SRC_CPP := 

# object file(s)
OBJ_C   := $(addprefix $(obj),$(patsubst %.c,%.o,$(SRC_C)))
OBJ_CPP := $(addprefix $(obj),$(patsubst %.cpp,%.o,$(SRC_CPP)))

all: _depend $(LIB)

clean:
	@echo "Cleaning..."
	@$(RM) $(OBJ_C) $(OBJ_CPP) $(LIB) *.bak *~ *.d *.o $(obj).depend

.PHONY: all clean

#########################################################################

include $(SRCTREE)/rules.mk

sinclude $(obj).depend

#########################################################################
